﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="editclientnumbers.aspx.cs" Inherits="editclientnumbers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        <prt:ShowFooterGridView ID="gvEditClientNumbers" runat="server" 
            AutoGenerateColumns="False" DataKeyNames="ClientNumberID" 
            DataSourceID="dsClientNumber" ShowFooterWhenEmpty="True" 
            ShowHeaderWhenEmpty="True">
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                <asp:TemplateField HeaderText="ClientID" SortExpression="ClientID">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ClientID") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("ClientID") %>'></asp:Label>
                    </ItemTemplate>
                    <FooterTemplate>
                        <asp:TextBox ID="TextBox15" runat="server" />
                    </FooterTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="SpeedDialTypeID" 
                    SortExpression="SpeedDialTypeID">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("SpeedDialTypeID") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("SpeedDialTypeID") %>'></asp:Label>
                    </ItemTemplate>
                    <FooterTemplate>
                        <asp:DropDownList ID="ddNumberType" runat="server" DataSourceID="dsNumberType" DataTextField="Description" DataValueField="NumberTypeID" />
                        <asp:ObjectDataSource ID="dsNumberType" runat="server" TypeName="AnseringServiceTableAdapters.NumberTypeTableAdapter" SelectMethod="GetData" />
                    </FooterTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Number" SortExpression="Number">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Number") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("Number") %>'></asp:Label>
                    </ItemTemplate>
                    <FooterTemplate>
                        <asp:TextBox ID="TextBox4" runat="server" />
                        
                    </FooterTemplate>
                </asp:TemplateField>
            </Columns>
        
        </prt:ShowFooterGridView>
        <asp:ObjectDataSource ID="dsClientNumber" runat="server" DeleteMethod="Delete" 
            InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" 
            SelectMethod="GetData" 
            TypeName="AnseringServiceTableAdapters.ClientNumberTableAdapter" 
            UpdateMethod="Update">
            <DeleteParameters>
                <asp:Parameter Name="Original_ClientNumberID" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="ClientID" Type="Int32" />
                <asp:Parameter Name="SpeedDialTypeID" Type="Int32" />
                <asp:Parameter Name="Number" Type="Decimal" />
                <asp:Parameter Name="Original_ClientNumberID" Type="Int32" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="ClientID" Type="Int32" />
                <asp:Parameter Name="SpeedDialTypeID" Type="Int32" />
                <asp:Parameter Name="Number" Type="Decimal" />
            </InsertParameters>
        </asp:ObjectDataSource>
</asp:Content>